﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LogonBox.ascx.cs" Inherits="webapp4U.UI.Controls.Controls_MenuLeft" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>

<table width="185" border="0" cellpadding="0" cellspacing="0" class="photo-frame"
    align="center">
    <tr>
        <td class="topx--">
        </td>
        <td class="top-x-">
        </td>
        <td class="top--x">
        </td>
    </tr>
    <tr>
        <td class="midx--">
        </td>
        <td bgcolor="white" style="padding-left: 6px; padding-right: 6px" align="center">
            <table width="100%" border="0" height="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td bgcolor="#f0f0f0" valign="top" align="left">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="center" style="padding-top: 1px" bgcolor="#7ca601" height="22">
                                    <span style="font-weight:bold;color:#ffffff">&nbsp;<%=ResourceManager.GetString("Logog_DangNhap")%></span>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" style="padding-top:5px;">
                                    <asp:Panel ID="PanelLogon" runat="server" DefaultButton="btLogon">
                                            <asp:UpdatePanel ID="UpdatePanelLogonBox" runat="server" UpdateMode="Conditional">
                                                <contenttemplate>
                                                <table align="center" cellpadding="3" cellspacing="0" border="0">
                                                    <tr>
                                                        <td colspan="2" align="center">
                                                            <asp:Label runat="server" ID="lblMsg" ForeColor="red"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr id="Tr4" visible="true" runat="server">
                                                        <td align="left">
                                                            Username:</td>
                                                        <td>
                                                            <asp:TextBox ValidationGroup="Logon" ID="txtEmail" MaxLength="200" runat="server" Width="80" />
                                                        </td>
                                                    </tr>
                                                    <tr id="Tr1" runat="server">
                                                        <td align="left" >
                                                            Password:</td>
                                                        <td>
                                                            <asp:TextBox ValidationGroup="Logon" ID="txtPassword" TextMode="Password" MaxLength="200" runat="server" Width="80" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right" colspan="2" style="padding-bottom:3px;">
                                                            <asp:ImageButton ValidationGroup="Logon" Visible="false" runat="server" ID="btDangky" ImageUrl="~/Images/btDangky.gif" OnClick="btDangky_Click" />
                                                            <asp:ImageButton ValidationGroup="Logon" Visible="false" runat="server" ID="btLogon" ImageUrl="~/Images/btLogon.gif" OnClick="btLogon_Click" />
                                                            
                                                            <asp:ImageButton ValidationGroup="Logon" Visible="false" runat="server" ID="btDangky_en" ImageUrl="~/Images/btDangky_en.gif" OnClick="btDangky_Click" />
                                                            <asp:ImageButton ValidationGroup="Logon" Visible="false" runat="server" ID="btLogon_en" ImageUrl="~/Images/btLogon_en.gif" OnClick="btLogon_Click" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" align="right" style="padding-bottom:3px;">
                                                            <a href="<%=Globals.ApplicationPath %>Membership/PasswordRecovery.aspx"><u><%=ResourceManager.GetString("Membership_ForgotPassword")%></u></a>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </contenttemplate>
                                           </asp:UpdatePanel>
                                    </asp:Panel>
                                    
                                    <asp:Panel runat="server" ID="PanelHello">
                                         <table align="center" cellpadding="6" cellspacing="0" border="0">
                                            <tr>
                                                <td align="center">
                                                     Hello:
                                                    <asp:LoginName ID="LoginName1" runat="server" Font-Bold="true" />
                                                    <br /><br />
                                                    <asp:LoginStatus runat="server" ForeColor="red" Font-Underline="true" ID="LoginStattus" />
                                                </td>
                                            </tr>
                                            
                                             <tr>
                                                <td align="center" style="padding-top:12px;">
                                                    <a href="<%=Globals.ApplicationPath %>Membership/CreateUser.aspx?Action=Edit"><u><%=ResourceManager.GetString("Membership_ChangeInformation")%></u></a>
                                                </td>
                                            </tr>
                                            
                                             <tr>
                                                <td align="center">
                                                    <a href="<%=Globals.ApplicationPath %>Membership/ChangePassword.aspx"><u><%=ResourceManager.GetString("ChangePassword")%></u></a>
                                                </td>
                                            </tr>
                                          </table>
                                    </asp:Panel>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
        <td class="mid--x">
        </td>
    </tr>
    <tr>
        <td class="botx--">
        </td>
        <td class="bot-x-">
        </td>
        <td class="bot--x">
        </td>
    </tr>
</table>
